b = input(':')
a = [1, 2, 3, 4, 5, 6, 7]
a.append(int(b))
print(sorted(a))